package admin

import (
	"context"

	v1 "open/api/open/admin/v1"
)

// GetQiNiuUploadToken 获取七牛token
func (s *Service) GetQiNiuUploadToken(_ context.Context, req *v1.GetQiNiuUploadTokenRequest) (*v1.GetQiNiuUploadTokenReply, error) {
	token := s.dao.GetQiNiuUploadToken(req.Bucket, req.Key)
	return &v1.GetQiNiuUploadTokenReply{Token: token}, nil
}
